package com.gs.wzmanager.entity;

import org.apache.ibatis.type.Alias;

import java.util.LinkedList;
import java.util.List;

@Alias("User")
public class User {

    private  String id; //用户id

    private String phone; //用户手机

    private String fixPhone;//座机

    private String name;//用户姓名

    private String nickName;//用户昵称

    private String password = "123456";//登录密码

    private String postId;  //预报员编号

    private Integer age;//年龄

    private String mail;//邮箱

    private String qq;//腾讯qq号

    private String sex;//

    private String usersGroup;//所属用户组

    private String job;//工作

    private Boolean locked;//是否锁定

    private String createTime;//创建时间

    private List<String> rolesitems = new LinkedList<>();

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Boolean getLocked() {
        return locked;
    }

    public void setLocked(Boolean locked) {
        this.locked = locked;
    }

    public String getFixPhone() {
        return fixPhone;
    }

    public void setFixPhone(String fixPhone) {
        this.fixPhone = fixPhone;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPostId() {
        return postId;
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUsersGroup() {
        return usersGroup;
    }

    public void setUsersGroup(String usersGroup) {
        this.usersGroup = usersGroup;
    }

    public List<String> getRolesitems() {
        return rolesitems;
    }

    public void setRolesitems(List<String> rolesitems) {
        this.rolesitems = rolesitems;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", phone='" + phone + '\'' +
                ", fixPhone='" + fixPhone + '\'' +
                ", name='" + name + '\'' +
                ", nickName='" + nickName + '\'' +
                ", password='" + password + '\'' +
                ", postId='" + postId + '\'' +
                ", age=" + age +
                ", mail='" + mail + '\'' +
                ", qq='" + qq + '\'' +
                ", usersGroup='" + usersGroup + '\'' +
                ", job='" + job + '\'' +
                ", locked=" + locked +
                ", createTime='" + createTime + '\'' +
                ", rolesitems=" + rolesitems +
                '}';
    }
}
